package m4d2;

import java.util.stream.Stream;

//终结方法 count 统计元素个数
public class rcount {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("1", "22", "333", "4444");
        //返回long
        long cout = stream.count();
        System.out.println(cout);
    }
}
